package com.njwb.day09.ens;

public class HeroTest {
    public static void main(String[] args) {

        Hero hero = new Hero() ;
        hero.setName("孙尚香");
        hero.setHeroOfKingType(HeroOfKingType.SHOOTER);

        Hero hero2 = new Hero() ;
        hero2.setName("貂蝉");
        hero2.setHeroOfKingType(HeroOfKingType.WARRIOR);

        System.out.println(hero.toString());
        System.out.println(hero2.toString());

    }
}
